<%= link_to 'New page', new_page_path %>
<h1>Listing pages</h1>

<form method="post" action="/pages/index" >
    <table>
        <thead>
            <tr>
                <th>Title</th>
                <th>Show</th>
                <th>Edit</th>
                <th>Delete</th>
            </tr>
        </thead>
        <!--
  <tr>
  <th></th>
  <th><input type="submit" /></th>
  </tr>
  -->
        <tbody>
            <% for page in @pages %>
            <tr>
                <!--
  	<td><input type="checkbox" name="offline_id[]" value="<%= page.identifier %>" /></td>
        -->
                <td><%=h page.title %></td>
                <td><%= link_to 'Run', run_page_path(page) %></td>
                <td><%= link_to 'Show', page_path(page) %></td>
                <td><%= link_to 'Edit', edit_page_path(page) %></td>
                <td><%= link_to 'Destroy', page_path(page), :confirm => 'Are you sure?', :method => :delete %></td>
            </tr>
            <% end %>
        </tbody>
    </table>
</form>